package com.tjnu.baiyi.entity;

import java.sql.Timestamp;

/**
 * TbMessage entity. @author MyEclipse Persistence Tools
 */

public class TbMessage implements java.io.Serializable {

	// Fields

	private Integer messageId;
	private TbUser tbUserByReceiptMessageId;
	private TbUser tbUserBySendMessageId;
	private String message;
	private Timestamp messageTime;

	// Constructors

	/** default constructor */
	public TbMessage() {
	}

	/** full constructor */
	public TbMessage(TbUser tbUserByReceiptMessageId,
			TbUser tbUserBySendMessageId, String message, Timestamp messageTime) {
		this.tbUserByReceiptMessageId = tbUserByReceiptMessageId;
		this.tbUserBySendMessageId = tbUserBySendMessageId;
		this.message = message;
		this.messageTime = messageTime;
	}

	// Property accessors

	public Integer getMessageId() {
		return this.messageId;
	}

	public void setMessageId(Integer messageId) {
		this.messageId = messageId;
	}

	public TbUser getTbUserByReceiptMessageId() {
		return this.tbUserByReceiptMessageId;
	}

	public void setTbUserByReceiptMessageId(TbUser tbUserByReceiptMessageId) {
		this.tbUserByReceiptMessageId = tbUserByReceiptMessageId;
	}

	public TbUser getTbUserBySendMessageId() {
		return this.tbUserBySendMessageId;
	}

	public void setTbUserBySendMessageId(TbUser tbUserBySendMessageId) {
		this.tbUserBySendMessageId = tbUserBySendMessageId;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Timestamp getMessageTime() {
		return this.messageTime;
	}

	public void setMessageTime(Timestamp messageTime) {
		this.messageTime = messageTime;
	}

}